package com.zerox.singleton.demo01;

/**
 * 懒汉模式
 * 不安全
 *
 */
public class XieFactory {
    private String name = "江南鞋厂";

    private static XieFactory xieFactory = null;

    private XieFactory(){

    }
    public static XieFactory getInstance(){
        if (xieFactory==null){
           xieFactory = new XieFactory();
        }
        return xieFactory;
    }
}
